package com.bwda.dsrs.systemservice.service;

import com.bwda.dsrs.systemservice.domain.exception.SystemServiceException;
import com.bwda.dsrs.systemservice.domain.po.verifycode.VerifyCodePo;
import com.bwda.dsrs.systemservice.domain.condition.verifycode.VerifyCodeCondition;

/**
 * @author yangjun
 */
public interface VerifyCodeService extends BaseService<VerifyCodePo, VerifyCodeCondition> {
    /**
     * 根据用户code获取最新的验证码
     * @param userCode
     * @return
     * @throws SystemServiceException
     */
    public VerifyCodePo queryLastVerifyCode(String userCode) throws SystemServiceException;
}